package com.maistars.spider.repository.security.model;

import lombok.Data;

import java.io.Serializable;
import java.util.*;

@Data
public class UserPO implements Serializable {

    private static final long serialVersionUID = -8860168915950390225L;
    private Integer userId;
    private String username;
    private String phone;
    private String nickName;
    private String password;
    private Date createTime;
    private Date lastTime;
    private String lastIp;
    /**
     * 0:正常 -1:删除 1:禁用账户 2:失效账户
     */
    private Integer status;
    /**
     * 是否被锁定 0:正常 1:被锁
     */
    private Integer locked;

    //用户角色列表
    private List<RolePO> roles = new ArrayList<>();
}
